package com.miracle9.game.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

@Entity
public class Admin
  extends BaseEntity
{
  @Column(length=50, nullable=false, unique=true)
  private String username;
  private String password;
  private int type;
  private String datetime;
  private boolean authDeleteBill;
  private boolean authMinusGold;
  private boolean authGiveGold;
  private boolean authHallAdmin;
  private boolean authPromoter;
  private boolean authUserRegist;
  @Transient
  private String lastOperate = "";
  
  public boolean isAuthUserRegist()
  {
    return this.authUserRegist;
  }
  
  public void setAuthUserRegist(boolean authUserRegist)
  {
    this.authUserRegist = authUserRegist;
  }
  
  public String getUsername()
  {
    return this.username;
  }
  
  public void setUsername(String username)
  {
    this.username = username;
  }
  
  public String getPassword()
  {
    return this.password;
  }
  
  public void setPassword(String password)
  {
    this.password = password;
  }
  
  public int getType()
  {
    return this.type;
  }
  
  public void setType(int type)
  {
    this.type = type;
  }
  
  public String getDatetime()
  {
    return this.datetime;
  }
  
  public void setDatetime(String datetime)
  {
    this.datetime = datetime;
  }
  
  public String getLastOperate()
  {
    return this.lastOperate;
  }
  
  public void setLastOperate(String lastOperate)
  {
    this.lastOperate = lastOperate;
  }
  
  public boolean isAuthDeleteBill()
  {
    return this.authDeleteBill;
  }
  
  public void setAuthDeleteBill(boolean authDeleteBill)
  {
    this.authDeleteBill = authDeleteBill;
  }
  
  public boolean isAuthMinusGold()
  {
    return this.authMinusGold;
  }
  
  public void setAuthMinusGold(boolean authMinusGold)
  {
    this.authMinusGold = authMinusGold;
  }
  
  public boolean isAuthGiveGold()
  {
    return this.authGiveGold;
  }
  
  public void setAuthGiveGold(boolean authGiveGold)
  {
    this.authGiveGold = authGiveGold;
  }
  
  public boolean isAuthHallAdmin()
  {
    return this.authHallAdmin;
  }
  
  public void setAuthHallAdmin(boolean authHallAdmin)
  {
    this.authHallAdmin = authHallAdmin;
  }
  
  public boolean isAuthPromoter()
  {
    return this.authPromoter;
  }
  
  public void setAuthPromoter(boolean authPromoter)
  {
    this.authPromoter = authPromoter;
  }
}
